package com.test.study.ToolsUtils.bean;

import org.apache.solr.client.solrj.beans.Field;

/**
 * 默认情况下solr 不识别普通字段 需要给字段加上 field注解
 * 
 * @author huyong
 *
 */
public class People {
	@Field
	private String id;
	@Field
	private String name;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "People [id=" + id + ", name=" + name + "]";
	}
	

}
